package simplebinding.impl;

import simplebinding.interfaces.Database;
import simplebinding.interfaces.Service;

import com.google.inject.Inject;

public class ServiceImpl implements Service {

	private final Database database;

	@Inject
	public ServiceImpl(Database database) {
		this.database = database;
		System.out.println("ServiceImpl created...");
	}

	public void run() {
		System.out.println("Running the service...");
		String data = database.returnData();
		System.out.println(data);
	}
}
